<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    return $request->user();
//});
Route::group(
    [
        'middleware' => 'auth:api',
    ], function ()
{

});

Route::group(['prefix'=>'v1'],function() {

    Route::any('/algorithm/test',    [Api\AlgorithmController::class, 'test']);
//    Route::any('/algorithm/test',     'Api\AlgorithmController@test');


    Route::any('/user/login',         [Api\UserController::class, 'login']);

    Route::resource('/config/usage',         Api\Config\ConfigUsageController::class);

    Route::any('/test/image',         [Api\UserController::class, 'image']);
});

